package fy.mdm.bean;

import org.json.JSONException;
import org.json.JSONObject;

public class SrmMaterialCodeBean {
	private String materialCode;// 产品编码
	private String materialName;// 产品名称

	public String getMaterialCode() {
		return materialCode;
	}

	public void setMaterialCode(String materialCode) {
		this.materialCode = materialCode;
	}

	public String getMaterialName() {
		return materialName;
	}

	public void setMaterialName(String materialName) {
		this.materialName = materialName;
	}

	public String getID() {
		return new StringBuilder().append("materialCode").append(materialCode).toString();
	}

	public JSONObject getJSONObject() throws JSONException {
		JSONObject jo = new JSONObject();
		jo.put("materialCode", materialCode);
		jo.put("materialName", materialName);
		return jo;
	}
}
